From 480e100048a292a3d00068dc721ead007adc5270 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Tue, 10 Oct 2006 09:09:38 -0400 Subject: [PATCH] [XEN][POWERPC] Remove pfn2mfn() now that it is understood It is possible (thank you xm-test) to initiate a grant copy to a page belonging to a dying domain, the page end up being owned by nobody which is what the original test asserted. Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --HG-- extra : transplant_source : z%F3cm%A4%B9U%E5V%AF%19%AF%91%B063%B5e%CC%E2 --- xen/arch/powerpc/mm.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xen/arch/powerpc/mm.c b/xen/arch/powerpc/mm.c index 7d38872d7d..8a91cbe51d 100644 --- a/xen/arch/powerpc/mm.c +++ b/xen/arch/powerpc/mm.c @@ -412,7 +412,18 @@ ulong pfn2mfn(struct domain *d, ulong pfn, int *type) } } } - BUG_ON(t != PFN_TYPE_NONE && page_get_owner(mfn_to_page(mfn)) != d); +#ifdef DEBUG + if (t != PFN_TYPE_NONE && + (d->domain_flags & DOMF_dying) && + page_get_owner(mfn_to_page(mfn)) != d) { + printk("%s: page type: %d owner Dom[%d]:%p expected Dom[%d]:%p\n", + __func__, t, + page_get_owner(mfn_to_page(mfn))->domain_id, + page_get_owner(mfn_to_page(mfn)), + d->domain_id, d); + BUG(); + } +#endif } if (t == PFN_TYPE_NONE) { -- 2.30.2